﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SMBL.Interface.Database
{
    /// <summary>
    /// Interface Database Basic
    /// The basic operations of database process
    /// @Author: Push
    /// </summary>
    public interface IDBBasic
    {
        /// <summary>
        /// Execute an Sql string
        /// @Author: Push
        /// </summary>
        /// <param name="theSql"></param>
        /// <returns></returns>
        Int32 Execute(ISql theSql);

        /// <summary>
        /// Query the database accroding to the Sql string
        /// @Author: Push
        /// </summary>
        /// <param name="theSql"></param>
        /// <returns></returns>
        System.Data.DataSet Query(ISql theSql);
    }
}
